package com.wtwd.device.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author mjy
 * @since 2022-04-11
 */
@ApiModel(value = "Medal对象", description = "")
@TableName("medal")
public class Medal implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "勋章主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "勋章图片",required = true)

    private String medalImg;

    @ApiModelProperty(value = "1.步数，2.跑步，3.骑行，4热量",required = true)
    @TableField("`type`")
    private Integer type;

    @ApiModelProperty(value = "勋章的点亮时间类型，1:单日最高，2：累计达到",required = true)
    private Integer timeType;

    @ApiModelProperty(value = "达标值")
    private Integer upToStandard;

    @ApiModelProperty(value = "达标值单位(国标单位,前端传什么单位，则给什么单位)",required = true)
    private Integer unit;

    @ApiModelProperty(value = "详细描述(预留)")
    @TableField("`describe`")
    private String describe;

    @ApiModelProperty(value = "是否展示（预留）")
    @TableField("`show`")
    private Integer show;

    @ApiModelProperty(value = "上传徽章时间")
    private Long uploadTime;

    @ApiModelProperty(value = "勋章类型主键id",required = true)
    private Long medalTypeId;

    @ApiModelProperty(value = "勋章名称",required = true)
    @TableField("`name`")
    private String name;

    @ApiModelProperty(value = "未点亮勋章名称",required = true)
    private String medalNotLight;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMedalImg() {
        return medalImg;
    }

    public void setMedalImg(String medalImg) {
        this.medalImg = medalImg;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getTimeType() {
        return timeType;
    }

    public void setTimeType(Integer timeType) {
        this.timeType = timeType;
    }

    public Integer getUpToStandard() {
        return upToStandard;
    }

    public void setUpToStandard(Integer upToStandard) {
        this.upToStandard = upToStandard;
    }

    public Integer getUnit() {
        return unit;
    }

    public void setUnit(Integer unit) {
        this.unit = unit;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Integer getShow() {
        return show;
    }

    public void setShow(Integer show) {
        this.show = show;
    }

    public Long getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Long uploadTime) {
        this.uploadTime = uploadTime;
    }

    public Long getMedalTypeId() {
        return medalTypeId;
    }

    public void setMedalTypeId(Long medalTypeId) {
        this.medalTypeId = medalTypeId;
    }

    public String getMedalNotLight() {
        return medalNotLight;
    }

    public void setMedalNotLight(String medalNotLight) {
        this.medalNotLight = medalNotLight;
    }

    @Override
    public String toString() {
        return "Medal{" +
                "id=" + id +
                ", medalImg='" + medalImg + '\'' +
                ", type=" + type +
                ", timeType=" + timeType +
                ", upToStandard=" + upToStandard +
                ", unit=" + unit +
                ", describe='" + describe + '\'' +
                ", show=" + show +
                ", uploadTime=" + uploadTime +
                ", medalTypeId=" + medalTypeId +
                ", name='" + name + '\'' +
                ", medalNotLight='" + medalNotLight + '\'' +
                '}';
    }
}
